package example.chapter12.optiontransferselect;

import java.util.ArrayList;
import java.util.List;

import com.opensymphony.xwork2.ActionSupport;

public class OptiontransferselectTagAction extends ActionSupport{
	private List<String> checkedList;
	private List<String> checkedList2;
	private List<String> listFruit;
	private List<String> listCar;
	
	public String execute() throws Exception{
		listFruit = new ArrayList<String>();
		listFruit.add("grape");
		listFruit.add("strawberry");
		listFruit.add("apple");
		
		listCar = new ArrayList<String>();
		listCar.add("Bus");
		listCar.add("Truck");
		listCar.add("Sports Car");
		
		return SUCCESS;
	}

	public List<String> getCheckedList() {
		return checkedList;
	}

	public void setCheckedList(List<String> checkedList) {
		this.checkedList = checkedList;
	}

	public List<String> getCheckedList2() {
		return checkedList2;
	}

	public void setCheckedList2(List<String> checkedList2) {
		this.checkedList2 = checkedList2;
	}

	public List<String> getListFruit() {
		return listFruit;
	}

	public void setListFruit(List<String> listFruit) {
		this.listFruit = listFruit;
	}

	public List<String> getListCar() {
		return listCar;
	}

	public void setListCar(List<String> listCar) {
		this.listCar = listCar;
	}
	
}
